import request from '@/utils/request'

// 查询案例附件列表
export function listCaseattach(query) {
  return request({
    url: '/casemgr/caseattach/list',
    method: 'get',
    params: query
  })
}

// 查询案例附件详细
export function getCaseattach(casattachid) {
  return request({
    url: '/casemgr/caseattach/' + casattachid,
    method: 'get'
  })
}

// 新增案例附件
export function addCaseattach(data) {
  return request({
    url: '/casemgr/caseattach',
    method: 'post',
    data: data
  })
}

// 修改案例附件
export function updateCaseattach(data) {
  return request({
    url: '/casemgr/caseattach',
    method: 'put',
    data: data
  })
}

// 删除案例附件
export function delCaseattach(casattachid) {
  return request({
    url: '/casemgr/caseattach/' + casattachid,
    method: 'delete'
  })
}
